//
//  YBAssetsDetailViewController+LayoutConstraints.m
//  Nectar
//
//  Created by famer on 2023/11/11.
//  Copyright © 2023 asance. All rights reserved.
//

#import "YBAssetsDetailViewController+LayoutConstraints.h"

@implementation YBAssetsDetailViewController (LayoutConstraints)

- (void)setLayoutConstraints{
    CGFloat width = self.view.size.width;
    CGFloat height = self.view.size.height;
    CGFloat leftMargin = 12;
    
    self.navigationBar.frame = CGRectMake(0,  [UIView statusBarHeight], width, 64);
    
    self.contentView.frame = CGRectMake(0,
                                        self.navigationBar.bottom,
                                        width,
                                        self.view.height-self.navigationBar.bottom);
    
    self.topTabbar.frame = CGRectMake(0, 1, width, 50);
    
    self.myScrollView.frame = CGRectMake(0,
                                         self.topTabbar.bottom+1,
                                         self.contentView.width,
                                         self.contentView.height-self.topTabbar.bottom+1);
    
    self.allTableView.frame = CGRectMake(0,
                                         0,
                                         self.myScrollView.width,
                                         self.myScrollView.height);
    
    self.outTableView.frame = CGRectMake(self.myScrollView.width,
                                         0,
                                         self.myScrollView.width,
                                         self.myScrollView.height);
    
    self.inTableView.frame = CGRectMake(self.myScrollView.width*2,
                                        0,
                                        self.myScrollView.width,
                                        self.myScrollView.height);
    
    self.failTableView.frame = CGRectMake(self.myScrollView.width*3,
                                          0,
                                          self.myScrollView.width,
                                          self.myScrollView.height);

    self.myScrollView.contentSize = CGSizeMake(self.myScrollView.width*4, self.myScrollView.height);
}
@end
